package com.ash.messagesource;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Locale;

public class MessageSourceDemo {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MessageSourceConfig.class);

        String test = context.getMessage("test", null, new Locale("de"));
        System.out.println(test);
    }
}
